package spms.data.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import spms.data.dao.MenuDao;
import spms.data.entity.Menu;
import spms.data.service.MenuService;
import spms.util.Page;

import java.util.List;

@Service
public class MenuServiceImpl extends BaseServiceImpl<Menu> implements MenuService {

    @Autowired
    MenuDao menuDao;


    @Override
    public Page<Menu> findPage(int pageNum, int pageSize, Class<Menu> clazz) throws Exception {
        return super.findPage(pageNum, pageSize, clazz);
    }

    @Override
    public int count(String tableName) {
        return super.count(tableName);
    }

    @Override
    public List<Menu> findAll(Class<Menu> clazz) throws Exception {
        return menuDao.findAll();
    }

}
